package org.example;

/**
 * @Author: MX
 * @Date: 2021/7/4 15:17
 */
public class TestMain {

    public static void main(String[] args) {
        User user = new User();
        user.setName("test1");
        user.setAge(1);
        WrapUser wu = new WrapUser();
        wu.setUser(user);
        test(wu);
        user.setName("test2");
        user.setAge(2);
        test(wu);
        int i = 1;
        test(i);
        i = 2;
        test(i);
    }

    static void test(WrapUser wu){
        System.out.println(wu.getUser().getName());
        System.out.println(wu.getUser().getAge());
    }
    static void test(int i){
        i++;
        System.out.println(i);
    }

}
